package com.wys.ws_im.dao;

import com.wys.ws_im.entity.Message;
import com.wys.ws_im.entity.OfflineMessage;
import org.beetl.sql.core.annotatoin.Param;
import org.beetl.sql.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;


/**
 * @author wys
 * created in 0:52 2019/4/16
 */
@Repository
public interface OfflineMessageDao extends BaseMapper<OfflineMessage> {

    /**
     * 最后一条已读消息id 或最前一条的未读消息id
     * @param sendId 发送方id
     * @return
     */
    OfflineMessage getOfflineMessage(@Param("sendId") Integer sendId, @Param("receiveId") Integer receiveId);

}
